package vn.edu.saigontech.ncms.service;

import java.util.Collection;

import vn.edu.saigontech.ncms.model.user.User;
import vn.edu.saigontech.ncms.service.impl.UserServiceImpl;

public interface UserService extends GenericService<User, Long> {
	
	static final UserService INSTANCE = new UserServiceImpl();
			
	User login(String username, String password);
	
	User findByUsername(String username);
	
	Collection<User> findByRole(String roleName);
	
	Collection<User> findAllByRole(String roleName);
	
	Collection<User> findAllAreActive();
	
	Collection<User> findAllNotAdmin();
}